require('../css/advertising.less')
require("../fonts/iconfont.css")
require("animate.css")

document.ready(function(){
    const times=document.querySelector("#times");

    let count=6;
    fn();
    function fn(){
        count--;
        times.innerHTML=count+"s";
        if(count==0){
            clearInterval(timer);
            location.href="./login.html"
        }
    }
   let timer= setInterval(fn,1000)

   //注册点击事件
   const jump=document.querySelector("#jump");
   jump.addEventListener("click",function(){
    location.href="./login.html"
   })
})
